package br.com.drestranho.escola.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="avaliacao", schema="public")
public class Avaliacao {
   
    @Id
    @SequenceGenerator(name="seq_avaliacao", sequenceName="seq_avaliacao", allocationSize=1)
    @GeneratedValue(generator="seq_avaliacao", strategy=GenerationType.SEQUENCE)
    @Column(name="id")
    Integer id;
    @ManyToOne
    @JoinColumn(name="id_disciplina", referencedColumnName="id")
    Disciplina disciplina;
    @Column(name="data")
	Date data;
    @Column(name="nome")
	String nome;
    @Column(name="descricao")
	String descricao;
    @Column(name="bimestre")
	Integer bimestre;
    @Column(name="peso")
	Double peso;
    @Column(name="valor_max")
	Double valorMax;
   
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	public Integer getBimestre() {
		return bimestre;
	}
	public void setBimestre(Integer bimestre) {
		this.bimestre = bimestre;
	}
	public Double getPeso() {
		return peso;
	}
	public void setPeso(Double peso) {
		this.peso = peso;
	}
	public Double getValorMax() {
		return valorMax;
	}
	public void setValorMax(Double valorMax) {
		this.valorMax = valorMax;
	}
	public Disciplina getDisciplina() {
        return disciplina;
    }
    public void setDisciplina(Disciplina disciplina) {
        this.disciplina = disciplina;
    }
       
   
}